package com.chixing.pojo;

import org.springframework.data.mongodb.core.aggregation.ArrayOperators;

import java.util.List;
import java.util.Map;

public class CarDetailVO {
    private Car car;
    private List<CarImg> carImgList;
    private  Map<Review, Member> carReviewMap;
    private Map<Integer,List<Integer>> review_memberId;

    public CarDetailVO(Car car, List<CarImg> carImgList, Map<Review, Member> carReviewMap, Map<Integer, List<Integer>> review_memberId) {
        this.car = car;
        this.carImgList = carImgList;
        this.carReviewMap = carReviewMap;
        this.review_memberId = review_memberId;
    }

    public CarDetailVO() {
    }

    public Map<Integer, List<Integer>> getReview_memberId() {
        return review_memberId;
    }

    public void setReview_memberId(Map<Integer, List<Integer>> review_memberId) {
        this.review_memberId = review_memberId;
    }

    public Car getCar() {
        return car;
    }

    public void setCar(Car car) {
        this.car = car;
    }

    public List<CarImg> getCarImgList() {
        return carImgList;
    }

    public void setCarImgList(List<CarImg> carImgList) {
        this.carImgList = carImgList;
    }

    public Map<Review, Member> getCarReviewMap() {
        return carReviewMap;
    }

    public void setCarReviewMap(Map<Review, Member> carReviewMap) {
        this.carReviewMap = carReviewMap;
    }


    @Override
    public String toString() {
        return "CarDetailVO{" +
                "car=" + car +
                ", carImgList=" + carImgList +
                ", carReviewMap=" + carReviewMap +
                '}';
    }
}
